import http from "../plugins/request";

export default {
    // 执行登录
    async login(params) {
        return http.login("/sys/login", params);
    },
    // 图片验证码
    async picCode(params) {
        return http.upload("getCaptcha", params);
    },
    async getAuthMenu(param) {
        return http.get("/getAuthMenu", param);
    },
    async getAuthRouter(param) {
        return http.get("/getAuthRouter", param);
    },
    //分页查询用户列表
     async getReportPage(param) {
        return http.get("/getReportPage", param);
    },
     async getEcharts(param) {
        return http.get("/getEcharts", param);
    },
    // 导出用户信息
    async exportExcel(params) {
        return http.download("/getExcel", params);
    },



}
